package com.tbs.easyhomemoneyserver.dao

import com.tbs.easyhomemoneyserver.DO.UserRights
import org.springframework.data.repository.CrudRepository
import org.springframework.stereotype.Repository

@Repository
interface UserRightsDao : CrudRepository<UserRights, Long> {
    /**
     * 根据用户id查询权限
     * @param userid 用户id
     * @param delmark 删除标记
     * @return
     */
    fun findAllByUserIdAndDeleteMark(userid: Long, delmark: Int): List<UserRights>
}
